<template>
    <el-date-picker v-model="value" v-bind="$attrs.data.extra" type="date" placeholder="选择日期">
    </el-date-picker>
</template>

<script>
export default {
    name: 'my-datePicker',
    data() {
        return {
            value: '',
        }
    },
    watch: {
        value(newVal) {
            this.$attrs.model[this.keyName] = newVal;
        }
    },
}
</script>

<style></style>